package com.jt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class demo1 {
    //http://localhost:8080/adder
    @RequestMapping("/adder")
    @ResponseBody
    public String adder(){
        System.out.println("你好！");
        return "hello";
    }

}
